/**
 * @author shenw
 */
Snake = {
	body: [],
	dir: 'right',
	count: 40,
	init: function(){
		body.push(new Snake.Body(5, 5));
		body.push(new Snake.Body(4, 5));
		body.push(new Snake.Body(3, 5));
	},
	Body: function(_x, _y) {
		this.x = _x;
		this.y = _y;
	},
	fresh: function() {
		if (count > 40) {
			count = 0;
			// TODO remove all body
			for (var i=0; i<body.length; i++) {
				var inimg = '<img class="body" src="../img/in.jpg"></img>';
				
			}
		} else {
			count++;
		}
	}
}
